package singleton.demo02;


public class Test {

    public static void main(String[] args) {

        Singleton02 instance1 = Singleton02.getInstance();
        Singleton02 instance2 = Singleton02.getInstance();
        System.out.println(instance1.hashCode() == instance2.hashCode());
        String showInfo = instance1.showInfo("张三");
        System.out.println(showInfo);
        String showInfo1 = instance2.showInfo("里斯");
        System.out.println(showInfo1);
    }
}
